package com.huqing.icu.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huqing.icu.enums.DeleteStatusEnum;
import com.huqing.icu.enums.community.UserPostBehaviorEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @Description 用户点赞帖子表的实体类
 * @Author huqing
 * @Date 2025/5/17 13:58
 **/
@TableName(value = "user_post_behavior")
@Data
public class UserPostBehavior {

    @Schema(name = "id", description = "主键ID")
    @TableId("id")
    private Long id;

    @Schema(name = "userId", description = "用户id")
    private Long userId;

    @Schema(name = "postId", description = "帖子ID")
    private Long postId;

    /**
     * @see UserPostBehaviorEnum
     */
    @Schema(name = "behavior", description = "行为")
    private Integer behavior;

    /**
     * @see DeleteStatusEnum
     */
    @TableLogic
    @Schema(name = "isDeleted", description = "是否已删除 0-否 1-是")
    private Integer isDeleted;

    @Schema(name = "创建时间", description = "创建时间")
    private Timestamp createTime;

    @Schema(name = "modifyTime", description = "修改时间")
    private Timestamp modifyTime;
}
